package StudyCode.summary.myfile;

import java.io.*;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CopyFileWithBufferedReaderAndPrintWriter {
	public static void main(String[] args) throws IOException {

		try (BufferedReader inputStream = new BufferedReader(new FileReader("E:\\迅雷下载\\test1.txt"));
		     PrintWriter outputStream = new PrintWriter(new FileWriter("E:\\Copy\\test1.txt"))) {
			String l;
			while ((l = inputStream.readLine()) != null) {
				outputStream.println(l);
			}
		}
	}
}
